package com.david.auth.util;

import java.util.Optional;

/**
 * @author David
 * @desc 字符串工具
 * @date 2022/4/18 16:27
 */
public class StringUtils {

    /**
     * String字符串拼接“&”
     *
     * @param strings String字符串
     * @return
     */
    public static String getStringJoin(String... strings) {
        return Optional.ofNullable(strings)
                .map(u -> String.join("&", u))
                .orElse("");
    }
}
